package com.bed.lovewithpatientbed.dao;

import com.bed.lovewithpatientbed.pojo.BedPut;
import com.bed.lovewithpatientbed.pojo.BedPutExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BedPutDao {
    long countByExample(BedPutExample example);

    int deleteByExample(BedPutExample example);

    int deleteByPrimaryKey(Integer bedPutId);

    int insert(BedPut record);

    int insertSelective(BedPut record);

    List<BedPut> selectByExample(BedPutExample example);

    BedPut selectByPrimaryKey(Integer bedPutId);

    int updateByExampleSelective(@Param("record") BedPut record, @Param("example") BedPutExample example);

    int updateByExample(@Param("record") BedPut record, @Param("example") BedPutExample example);

    int updateByPrimaryKeySelective(BedPut record);

    int updateByPrimaryKey(BedPut record);
    /*按照医院id查询已投放床位的总数量*/
    Integer selectBedQunantityByhospitalId(Integer hospitalId);
}